// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** listPermission GET /api/permission/list */
export async function listPermissionUsingGet(options?: { [key: string]: any }) {
  return request<API.ResultListPermissionVO_>('/api/permission/list', {
    method: 'GET',
    ...(options || {}),
  });
}

/** listPermissionByRoleId GET /api/permission/list/${param0} */
export async function listPermissionByRoleIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listPermissionByRoleIdUsingGETParams,
  options?: { [key: string]: any }
) {
  const { roleId: param0, ...queryParams } = params;
  return request<API.ResultListPermissionVO_>(
    `/api/permission/list/${param0}`,
    {
      method: 'GET',
      params: { ...queryParams },
      ...(options || {}),
    }
  );
}
